//
//@File    :	5.13_while.cpp
//@Time    :	2021/08/06 17:53:44
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	introducing the while loop
//

#include <iostream>
const int ArSize = 20;
using namespace std;
int main()
{
    char name[ArSize];
    cout<<"Your first name,Please: ";
    cin>>name;
    cout<<"Here is your name,verticalized and ASCIIized:\n";
    int i = 0;
    while(name[i] != '\0')
    {
        cout<<name[i]<<": "<<int(name[i])<<endl;
        i++;
    }
    system("pause");
    return 0;
}